// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import 'normalize.css'        // A modern alternative to CSS resets
import '@/styles/index.scss'  // 全局样式
import App from './App'

//路由
import router from './router'

//处理svg
import '@/icons'

//引入store
import store from './store'

//引入ElementUI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

//v-contextmenu
import contentmenu from 'v-contextmenu'
import 'v-contextmenu/dist/index.css'
Vue.use(contentmenu)

//vue-echarts
import ECharts from 'vue-echarts/components/ECharts'
Vue.component('chart', ECharts)

//lodash
import _ from 'lodash'
Object.defineProperty(Vue.prototype, '$lodash', { value: _ })

Vue.config.productionTip = false



/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  template: '<App/>',
  components: { App }
})
